using System;
using LambdaGp.Core;

namespace LambdaGp.Operators.Functions.MathFunctions
{
    public class Mul : BinaryFunction
    {
        public Mul()
            : base("*")
        {
        }

        protected override Func<double> CompileBinaryToFunc(Individual individual, Func<double> first, Func<double> second)
        {
            return () => first() * second();
        }
    }
}
